package com.spc.car.web.controller.std;


import com.spc.car.core.framework.web.domain.AjaxResult;
import com.spc.car.data.service.std.StdFgExpertSpecialtyClassificationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 发改委2018公共资源交易评标专家专业分类标准表
发改法规〔2018〕316号 前端控制器
 * </p>
 *
 * @author 
 * @since 2020-04-07
 */
@Api(tags = "标段分类")
@RestController
@Validated
@Slf4j
public class StdFgExpertSpecialtyClassificationController {

    @Autowired
    private StdFgExpertSpecialtyClassificationService stdFgExpertSpecialtyClassificationService;

    @ApiOperation(value = "获取标段分类列表", notes = "获取标段分类列表")
    @GetMapping("/listBidClassification")
    public AjaxResult listBidClassification(@RequestParam(required = false) String parentCode){
        return AjaxResult.success(stdFgExpertSpecialtyClassificationService.listBidClassificationByParentCode(parentCode));
    }
}

